summaryrefslogtreecommitdiff
path: root/gr-run-waveform
diff options
context:
space:
mode:
authorRob Savoye2010-11-26 19:44:11 -0700
committerRob Savoye2010-11-26 19:44:11 -0700
commitaef7d16d8752f3e97a6d1d5e64399c498bce5123 (patch)
tree45dd162949dc7f8d61e1728eb95bf08cb878254e /gr-run-waveform
parent775f1117e149d86429c8b7024d780ed6536c7f24 (diff)
downloadgnuradio-aef7d16d8752f3e97a6d1d5e64399c498bce5123.tar.gz
gnuradio-aef7d16d8752f3e97a6d1d5e64399c498bce5123.tar.bz2
gnuradio-aef7d16d8752f3e97a6d1d5e64399c498bce5123.zip
add test for xyzzy_make_read_only_port()
Diffstat (limited to 'gr-run-waveform')
-rw-r--r--gr-run-waveform/test_xyzzy.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/gr-run-waveform/test_xyzzy.cc b/gr-run-waveform/test_xyzzy.cc
index 1520c7624..986746858 100644
--- a/gr-run-waveform/test_xyzzy.cc
+++ b/gr-run-waveform/test_xyzzy.cc
@@ -95,27 +95,28 @@ main(int argc, char *argv[])
cout << "PASSED: xyzzy_file_exists(not yet)" << endl;
}
-// Initialize with the data file produced by gen-xyzzy.
+ // Initialize with the data file produced by gen-xyzzy.
string fullspec = "/usr/local/share/gnuradio/gr-run-waveform/filesystem.dat";
if (xyzzy_init(fullspec)) {
cout << "PASSED: xyzzy_init()" << endl;
} else {
cout << "FAILED: xyzzy_init()" << endl;
}
-
-// Does a file with name 'filename' exist in magic filesystem?
+
+ // Does a file with name 'filename' exist in magic filesystem?
if (xyzzy_file_exists("srfi/srfi-35.scm")) {
cout << "PASSED: xyzzy_file_exists()" << endl;
} else {
cout << "FAILED: xyzzy_file_exists()" << endl;
}
-// bool file_exists(const std::string &filespec)
-
-// Return a C port that will read the file contents
-// SCM make_read_only_port(handle, const std::string &filespec)
-// SCM xyzzy_make_read_only_port(const std::string &filespec)
+ // Return a C port that will read the file contents
+ if (xyzzy_make_read_only_port("gnuradio")) {
+ cout << "PASSED: xyzzy_make_read_only_port()" << endl;
+ } else {
+ cout << "FAILED: xyzzy_make_read_only_port()" << endl;
+ }
}
/// \brief Convert a Hex digit into it's decimal value.