summaryrefslogtreecommitdiff
path: root/gr-run-waveform/test_xyzzy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-run-waveform/test_xyzzy.cc')
-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.