| 192 | end |
| 193 | |
| 194 | def test_12 |
| 195 | |
| 196 | # Application.exit(0) - Python |
| 197 | out = `#{self.klayout_bin} -z -r #{File.join(File.dirname(__FILE__), "test12.py")} 2>&1` |
| 198 | assert_equal(out, "Before exit()\n") |
| 199 | |
| 200 | # Application.exit(0) - Ruby |
| 201 | out = `#{self.klayout_bin} -z -r #{File.join(File.dirname(__FILE__), "test12.rb")} 2>&1` |
| 202 | assert_equal(out, "Before exit()\n") |
| 203 | |
| 204 | # sys.exit(0) - Python |
| 205 | out = `#{self.klayout_bin} -z -r #{File.join(File.dirname(__FILE__), "test12s.py")} 2>&1` |
| 206 | assert_equal(out, "Before exit()\n") |
| 207 | |
| 208 | # quit() - Python (issue #1565) |
| 209 | out = `#{self.klayout_bin} -z -r #{File.join(File.dirname(__FILE__), "test12q.py")} 2>&1` |
| 210 | assert_equal(out, "Before quit()\n") |
| 211 | |
| 212 | end |
| 213 | |
| 214 | end |
| 215 |
nothing calls this directly
no test coverage detected