Skip to content

Commit 569b925

Browse files
committed
*BSD: disable the problematic bytes_to_str() test properly
This allows us to see that this test was skipped.
1 parent b6ea2dc commit 569b925

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/unittest.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,11 @@ TEST(KaitaiStreamTest, bytes_to_str_invalid_seq_gb2312_too_short)
510510
}
511511
}
512512

513-
#if !defined(__FreeBSD__) && !defined(__NetBSD__)
513+
#if defined(__FreeBSD__) || defined(__NetBSD__)
514+
TEST(KaitaiStreamTest, DISABLED_bytes_to_str_invalid_seq_gb2312_two_bytes)
515+
#else
514516
TEST(KaitaiStreamTest, bytes_to_str_invalid_seq_gb2312_two_bytes)
517+
#endif
515518
{
516519
// 0xB0 0x30 is illegal sequence in GB2312: 0xB0 must be followed by [0xA1..0xFE].
517520
// However, some iconv engines, namely CITRUS integrated with modern FreeBSD (10+) and NetBSD,
@@ -529,7 +532,6 @@ TEST(KaitaiStreamTest, bytes_to_str_invalid_seq_gb2312_two_bytes)
529532
#endif
530533
}
531534
}
532-
#endif
533535

534536
TEST(KaitaiStreamTest, bytes_to_str_invalid_seq_utf16le_odd_bytes)
535537
{

0 commit comments

Comments
 (0)