Logo Search packages:      
Sourcecode: vdr-plugin-burn version File versions  Download package

common_functions.c

#include "t/common_functions.h"
#include "common.h"
#include <string>
#include <boost/test/unit_test.hpp>

using boost::unit_test::test_suite;

void test_shell_escape(void)
{
      using namespace vdr_burn;
      using namespace std;

      string path = "/video0/Claire's \"Erbe\"";
      string escaped = shell_escape(path, "'");
      BOOST_CHECK_EQUAL(escaped, "/video0/Claire\\'s \"Erbe\"");
      escaped = shell_escape(path, "\"");
      BOOST_CHECK_EQUAL(escaped, "/video0/Claire's \\\"Erbe\\\"");
}

Generated by  Doxygen 1.6.0   Back to index