diff options
author | Simon McVittie <smcv@collabora.com> | 2018-01-03 08:23:10 +0000 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-01-04 12:32:47 +0000 |
commit | 994cd66744e559c92644f36028c6c262605ad75a (patch) | |
tree | a7203a5994fe761f47fee008a0301c6319feedd8 /tests/get-byte-order.c | |
parent | 95f9b392a44974a91bd3bf61e33779cdedda29e7 (diff) | |
download | ostree-994cd66744e559c92644f36028c6c262605ad75a.tar.gz |
tests: Assert that byte-order is swapped on LE but not BE CPUs
Closes: #1392
Signed-off-by: Simon McVittie <smcv@collabora.com>
Closes: #1393
Approved by: cgwalters
Diffstat (limited to 'tests/get-byte-order.c')
-rw-r--r-- | tests/get-byte-order.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/get-byte-order.c b/tests/get-byte-order.c new file mode 100644 index 00000000..7e7ba31b --- /dev/null +++ b/tests/get-byte-order.c @@ -0,0 +1,12 @@ +/* Helper for OSTree tests: return host byte order */ + +#include "config.h" + +#include <glib.h> + +int +main (void) +{ + g_print ("%d\n", G_BYTE_ORDER); + return 0; +} |