fix windows compilation and test
This commit is contained in:
parent
1f54d6aad9
commit
d7227bb5b4
|
@ -12,10 +12,15 @@
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
#define _BSD_SOURCE
|
||||||
|
#define _GNU_SOURCE
|
||||||
|
#define _XOPEN_SOURCE
|
||||||
|
#define _DEFAULT_SOURCE
|
||||||
|
|
||||||
#include "tcompare.h"
|
#include "tcompare.h"
|
||||||
#include <tulog.h>
|
#include "tulog.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
|
#include "regex.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "ttype.h"
|
#include "ttype.h"
|
||||||
|
|
||||||
|
|
|
@ -95,15 +95,15 @@ if $rows != 2 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print $tbPrefix
|
print $tbPrefix, $data00 $data10
|
||||||
$tb = $tbPrefix . 0
|
$tb = $tbPrefix . 0
|
||||||
if $data00 != wh_tb1 then
|
if $data00 != $tb then
|
||||||
print expect wh_tb1, actual:$data00
|
print expect $tb, actual:$data00
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
$tb = $tbPrefix . 1
|
$tb = $tbPrefix . 1
|
||||||
if $data10 != wh_tb0 then
|
if $data10 != $tb then
|
||||||
print expect wh_tb0, actual:$data00
|
print expect $tb, actual:$data00
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue