fix windows compilation and test

This commit is contained in:
shenglian zhou 2021-08-24 08:50:15 +08:00
parent 1f54d6aad9
commit d7227bb5b4
2 changed files with 11 additions and 6 deletions

View File

@ -12,10 +12,15 @@
* 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/>.
*/
#define _BSD_SOURCE
#define _GNU_SOURCE
#define _XOPEN_SOURCE
#define _DEFAULT_SOURCE
#include "tcompare.h"
#include <tulog.h>
#include "tulog.h"
#include "hash.h"
#include "regex.h"
#include "os.h"
#include "ttype.h"

View File

@ -95,15 +95,15 @@ if $rows != 2 then
return -1
endi
print $tbPrefix
print $tbPrefix, $data00 $data10
$tb = $tbPrefix . 0
if $data00 != wh_tb1 then
print expect wh_tb1, actual:$data00
if $data00 != $tb then
print expect $tb, actual:$data00
return -1
endi
$tb = $tbPrefix . 1
if $data10 != wh_tb0 then
print expect wh_tb0, actual:$data00
if $data10 != $tb then
print expect $tb, actual:$data00
return -1
endi