summaryrefslogtreecommitdiffstats
path: root/spec/eina_log_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-27 15:48:45 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-27 15:48:45 +0100
commitef44077310b4ebf8d3cb31ccb57d15b96a94c9d3 (patch)
treec2bb690ccc1be37c03f6dcdcf892fbf3e17f5067 /spec/eina_log_spec.rb
parentdbb2c5713e11489dfaeb318a82785017f1794dde (diff)
parentb030c490265bb13ee98a650da419a033495042ed (diff)
downloadffi-efl-ef44077310b4ebf8d3cb31ccb57d15b96a94c9d3.zip
ffi-efl-ef44077310b4ebf8d3cb31ccb57d15b96a94c9d3.tar.gz
Merge branch 'wip'
Conflicts: tools/genruby.rb
Diffstat (limited to 'spec/eina_log_spec.rb')
-rw-r--r--spec/eina_log_spec.rb18
1 files changed, 10 insertions, 8 deletions
diff --git a/spec/eina_log_spec.rb b/spec/eina_log_spec.rb
index 62d54a1..03c51dd 100644
--- a/spec/eina_log_spec.rb
+++ b/spec/eina_log_spec.rb
@@ -1,7 +1,6 @@
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
-require 'efl/eina'
require 'efl/eina_log'
require './spec/helper'
#
@@ -21,6 +20,16 @@ describe 'Efl::EinaLog' do
EinaLog.level.should == 3
end
#
+ it "eina_log_level enum should be well defined" do
+ Efl::Native.enum_value(:eina_log_level_critical).should == 0
+ Efl::Native.enum_value(:eina_log_level_err).should == 1
+ Efl::Native.enum_value(:eina_log_level_warn).should == 2
+ Efl::Native.enum_value(:eina_log_level_info).should == 3
+ Efl::Native.enum_value(:eina_log_level_dbg).should == 4
+ Efl::Native.enum_value(:eina_log_levels).should == 5
+ Efl::Native.enum_value(:eina_log_level_unknown).should == (-2147483647-1)
+ end
+ #
it "color_disable set/get" do
bool_check EinaLog, 'color_disable'
end
@@ -60,12 +69,5 @@ describe 'Efl::EinaLog' do
EinaLog.main_thread_check.should be_true
EinaLog.threads_enable
end
- # EAPI void eina_log_threads_enable(void);
- # EAPI void eina_log_print_cb_set(Eina_Log_Print_Cb cb, void *data);
#
- # EAPI void eina_log_print(int domain, Eina_Log_Level level, const char *file, const char *function, int line, const char *fmt, ...);
- # EAPI void eina_log_vprint(int domain, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, va_list args);
- # EAPI void eina_log_print_cb_stdout(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args);
- # EAPI void eina_log_print_cb_stderr(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args);
- # EAPI void eina_log_print_cb_file(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args);
end