summaryrefslogtreecommitdiff
path: root/test_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-27 01:44:06 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-27 01:44:06 +0000
commitb1880a5f2e97c108f142dafa4e7f0997581f6a8e (patch)
tree30e8f7dd79b958a8d1b6fa1fd00fdc6d2af6eecd /test_json.c
parentbb323a7c4ef28df3e2e2a6007e1d21435948cd3a (diff)
downloadgpsd-b1880a5f2e97c108f142dafa4e7f0997581f6a8e.tar.gz
GPSD-NG code is no longer experimental.
Diffstat (limited to 'test_json.c')
-rw-r--r--test_json.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/test_json.c b/test_json.c
index a4523150..32ecc7fa 100644
--- a/test_json.c
+++ b/test_json.c
@@ -76,7 +76,6 @@ static void assert_real(char *attr, double fld, double val)
static struct gps_data_t gpsdata;
-#ifdef GPSDNG_ENABLE
/* Case 1: TPV report */
static const char json_str1[] = "{\"class\":\"TPV\",\
@@ -201,15 +200,12 @@ static const struct json_attr_t json_attrs_8[] = {
};
/*@ +fullinitblock @*/
-#endif /* GPSDNG_ENABLE */
-
int main(int argc UNUSED, char *argv[] UNUSED)
{
int status = 0;
(void)fprintf(stderr, "JSON unit test ");
-#ifdef GPSDNG_ENABLE
status = libgps_json_unpack(json_str1, &gpsdata);
assert_case(1, status);
assert_string("device", gpsdata.dev.path, "GPS#1");
@@ -284,8 +280,6 @@ int main(int argc UNUSED, char *argv[] UNUSED)
assert_integer("fie", fie, 6);
assert_integer("foe", foe, 14);
-#endif /* GPSDNG_ENABLE */
-
(void)fprintf(stderr, "succeeded.\n");
exit(0);