diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-11-26 11:49:14 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-11-26 11:49:14 +0000 |
commit | 721109392847c9f4b765fb6c9176807d1a37a924 (patch) | |
tree | 02e9e133c80211f082484813cc2b11bf7b0457f4 /test_json.c | |
parent | 668a46bc06959b0b081523b64fca2eee12784386 (diff) | |
download | gpsd-721109392847c9f4b765fb6c9176807d1a37a924.tar.gz |
Fix a test that was broken by the last fix to the json client-side stuff.
All regression tests pass.
Diffstat (limited to 'test_json.c')
-rw-r--r-- | test_json.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test_json.c b/test_json.c index e34f004a..7af0d70a 100644 --- a/test_json.c +++ b/test_json.c @@ -246,9 +246,9 @@ int main(int argc UNUSED, char *argv[] UNUSED) status = libgps_json_unpack(json_str5, &gpsdata, NULL); assert_case(5, status); - assert_string("path", gpsdata.devices.list[0].path, "/dev/ttyUSB0"); - assert_integer("flags",gpsdata.devices.list[0].flags, 5); - assert_string("driver", gpsdata.devices.list[0].driver, "Foonly"); + assert_string("path", gpsdata.dev.path, "/dev/ttyUSB0"); + assert_integer("flags",gpsdata.dev.flags, 5); + assert_string("driver", gpsdata.dev.driver, "Foonly"); status = json_read_object(json_str6, json_attrs_6, NULL); assert_case(6, status); |